﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MacroServiceEditor.aspx.cs" MasterPageFile="" Inherits="MacroService.Pages.MacroServiceEditor" %>

<%@ Register Assembly="controls" Namespace="umbraco.uicontrols" TagPrefix="cc1" %>
<%@ Register Assembly="controls" Namespace="umbraco.uicontrols.TreePicker" TagPrefix="cc2" %>

<asp:Content ContentPlaceHolderID="head" runat="server"></asp:Content>

<asp:Content ContentPlaceHolderID="body" runat="server">

	<cc1:TabView ID="TabView1" runat="server" Width="552px" Height="392px"></cc1:TabView>
    <asp:hiddenfield ID="showHiddenProperties" runat="server" Value="False"></asp:hiddenfield>

    <cc1:pane id="Pane1" runat="server">
        <table id="macroPane" cellspacing="0" cellpadding="4" width="98%" border="0">
            <tr>
	            <td class="propertyHeader" width="30%">
		            Macro Service Alias<br /><small>The alias used in the url<br />/macro/myAlias, etc.</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textAlias" runat="server" Width="230px" CssClass="guiInputText"/>
	            </td>
            </tr>
        </table>
    </cc1:pane>
    <cc1:pane id="Pane2" runat="server">
        <table id="Table2" cellspacing="0" cellpadding="4" width="98%" border="0">
            <tr>
	            <td class="propertyHeader" width="30%">
		            Content Type<br /><small>Mime Type</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textContentType" runat="server" Width="230px" CssClass="guiInputText"/>
                    <asp:DropDownList ID="ddlContentType" runat="server" onClientClick="">
                        <asp:ListItem Value=""></asp:ListItem>
                        <asp:ListItem Value="text/plain">Text</asp:ListItem>
                        <asp:ListItem Value="text/xml">XML</asp:ListItem>
                        <asp:ListItem Value="application/json">JSON</asp:ListItem>
                        <asp:ListItem Value="text/html">HTML</asp:ListItem>
                        <asp:ListItem Value="application/javascript">JavaScript</asp:ListItem>
                        <asp:ListItem Value="text/css">CSS</asp:ListItem>
                        <asp:ListItem Value="application/rss+xml">RSS</asp:ListItem>
                        <asp:ListItem Value="application/atom+xml">Atom</asp:ListItem>
                        <asp:ListItem Value="application/octet-stream">Binary File</asp:ListItem>
                        <asp:ListItem Value="application/pdf">PDF</asp:ListItem>
                        <asp:ListItem Value="application/x-compressed">zip</asp:ListItem>
                        <asp:ListItem Value="text/vcard">vCard</asp:ListItem>
                        <asp:ListItem Value="text/calendar">vCalendar</asp:ListItem>
                    </asp:DropDownList>
	            </td>
            </tr>
            <tr>
	            <td class="propertyHeader" width="30%">
		            Output Filename<br /><small>If set, will force download in some browsers.</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textFileName" runat="server" Width="230px" CssClass="guiInputText"/>
	            </td>
            </tr>
        </table>
    </cc1:pane>
    <cc1:pane id="Pane3" runat="server">
        <table id="Table3" cellspacing="0" cellpadding="4" width="98%" border="0">
            <tr>
	            <td class="propertyHeader" width="30%">
		            Allowed Verbs
	            </td>
	            <td class="propertyContent">
                    <asp:CheckBoxList ID="checkVerbs" runat="server" RepeatDirection="Horizontal" >
                        <asp:ListItem>GET</asp:ListItem>
                        <asp:ListItem>POST</asp:ListItem>
                        <asp:ListItem>PUT</asp:ListItem>
                        <asp:ListItem>DELETE</asp:ListItem>
                    </asp:CheckBoxList>
	            </td>
            </tr>
            <tr>
	            <td class="propertyHeader" width="30%">
		            Member IDs<br /><small>Comma Separated List</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textMemberIds" runat="server" Width="230px" CssClass="guiInputText"/>
	            </td>
            </tr>
            <tr>
	            <td class="propertyHeader" width="30%">
		            Member Types<br /><small>Comma Separated List</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textMemberTypes" runat="server" Width="230px" CssClass="guiInputText"/>
	            </td>
            </tr>
            <tr>
	            <td class="propertyHeader" width="30%">
		            Member Groups<br /><small>Comma Separated List</small>
	            </td>
	            <td class="propertyContent">
		            <asp:TextBox ID="textMemberGroups" runat="server" Width="230px" CssClass="guiInputText"/>
	            </td>
            </tr>
        </table>
    </cc1:pane>

    <cc1:pane id="Pane4" runat="server">
        <table id="Table1" cellspacing="0" cellpadding="4" width="98%" border="0">
            <tr>
                <th><strong>Parameter</strong></th>
                <th><strong>Alias</strong></th>
                <th><strong>Value</strong></th>
                <th><strong>Locked</strong></th>
            </tr>
            <tr>
                <td>Node ID</td>
                <td>nodeId</td>
                <td><cc2:SimpleContentPicker ID="cpNodeId" runat="server" /></td>
                <td><asp:CheckBox ID="chkNodeIdLocked" runat="server"></asp:CheckBox></td>
            </tr>
            <asp:Repeater ID="rpParameters" runat="server" onitemdatabound="rpParameters_ItemDataBound" >
                <ItemTemplate>
                    <tr>
                        <td><asp:Literal ID="paramName" runat="server"></asp:Literal></td>
                        <td><asp:Literal ID="paramAlias" runat="server"></asp:Literal></td>
                        <td><asp:PlaceHolder ID="paramControl" runat="server"/></td>
                        <td><asp:CheckBox ID="paramLocked" runat="server"></asp:CheckBox></td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </cc1:pane>
</asp:Content>